package cn.com.dhc.danlu.widget.nested;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * User: Geek_Soledad(wuhaiyang@danlu.com)
 * Date: 2016-08-04
 * Time: 14:34
 * Description: .....
 */
public class ScrollGridView extends GridView {
    public ScrollGridView (Context context) {
        super (context);
    }

    public ScrollGridView (Context context, AttributeSet attrs) {
        super (context, attrs);
    }

    public ScrollGridView (Context context, AttributeSet attrs, int defStyleAttr) {
        super (context, attrs, defStyleAttr);
    }

    @Override
    public void onMeasure (int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec ( Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure (widthMeasureSpec, expandSpec);
    }
}
